<!-- Include Jquery--->
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>

<script type="text/javascript">

  $(document).ready(function(){

     $('.txt').click( function (){
        $(this).attr('name','myButton');
        // inspect element this page
     });

  });
</script>


<input class="txt" type="button" value="Click Here to get the value of below paragraph">
